<?php

class Offline extends Controller {

	function Offline()
	{
		parent::Controller();
	}
	
	function index()
	{	
	
		if($this->Setting_model->is_online())
		{
			redirect(base_url());
		}
		
		// Set meta
		$site =  $this->Setting_model->get_row_offline("site_title,site_description,site_keyword,offline_message",1);
		$title =  $site["site_title"];
		$data['web_title'] = $title;
		$data['meta_title'] = $title;
		$data['meta_description'] = $site["site_description"];
		$data['meta_keyword'] = $site["site_keyword"];
		
		// Set Content 
		$data['content'] = auto_typography($site["offline_message"]);
		
		// Send and Load page
		$this->load->vars($data);
		$this->load->view('offline_view');	
	}
}	
/* End of file offline.php */
/* Location: ./system/application/controllers/offline.php */
?>